package com.lx.springmvcproject2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lx
 * @since 2021-11-03
 */
@ApiModel
@Data
@EqualsAndHashCode(callSuper = true)
public class Goods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * /
     */
    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    /**
     * 商品名
     */
    private String gname;

    /**
     * 商品价格
     */
    private Double gprice;

    /**
     * 商品描述
     */
    private String gdesc;

    @TableField(exist = false)
    private Integer num;
}
